package com.jby.autotest.service.user.impl;

import com.jby.autotest.dao.UserMapper;
import com.jby.autotest.model.User;
import com.jby.autotest.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> selectByPage(User user) throws Exception{
        return userMapper.selectByPage(user);
    }

    @Override
    public void insertSelective(User user) throws Exception {
        userMapper.insertSelective(user);
    }

    @Override
    public void updateByPrimaryKeySelective(User user) throws Exception {
        userMapper.updateByPrimaryKeySelective(user);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) throws Exception {
        userMapper.deleteByPrimaryKey(id);
    }
}
